package com.springcloudexercise.baseservice.FeignInterface;

import com.springcloudexercise.baseservice.config.FeignConfig;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "USERSERVICE2",configuration = FeignConfig.class)
public interface UserServiceTwoFeign {

    @RequestLine("POST /addUserInfo")
    Object addUserInfo(@RequestBody Object user);
}
